import 'package:flutter/material.dart';
import 'package:flutter_snail/pages/reading/article_item.dart';
import 'package:flutter_snail/pages/reading/recommend_swiper.dart';

class RecommendItem extends StatelessWidget {
  const RecommendItem({Key? key, required this.index}) : super(key: key);

  final int index;

  @override
  Widget build(BuildContext context) {
    switch (index) {
      case 0:
        return const ArticleItem();
      case 1:
        return const RecommendSwiper();
      default:
        return const ArticleItem();
    }
  }
}
